﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "GcmpModelInterface.h"
#include "IObject.h"
#include "WeakPtr.h"
#include "IEvent.h"

namespace gcmp
{

    /// \brief 事件参数接口基类
    class GCMP_MODEL_INTERFACE_EXPORT IEventArgs:public IObject
    {
        DEFINE_CAST_DERIVED(gcmp::IEventArgs, gcmp::IObject);

    public:
        /// \brief 得到事件指针
        /// \return 事件指针
        virtual const IEvent* GetEvent() const = 0;
    };
}


